<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<center>
    <form action="updates.php" method="post">
        <h2>修改页面</h2>
        <table>
            <tr>
                <td>姓名</td>
                <td><input type="text" name="name" value="<?php echo $data['name']?>"></td>
            </tr>
            <tr>
                <td>性别</td>
                <td><input type="text" name="sex" value="<?php echo $data['sex']?>"></td>
            </tr>
            <tr>
                <td>年龄</td>
                <td><input type="text" name="age" value="<?php echo $data['age']?>"></td>
            </tr>
            <tr>
                <td><input type="hidden" name="id" value="<?php echo $data['id']?>"></td>
                <td><input type="submit" value="修改"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>